<?php

    $name = $column->getName();
    $options = $column->config['options'];
    $key = $record->getKeyName();
?>
<label class="custom-radio-select">
    <div class="field_text" >
        <div class="field-base-params" primary-name="<?=$key?>" primary-value="<?= $record->$key ?>" data-field="<?= $name?>">
            <?php foreach($options as $k => $v):?>
            <div class="form-check">
                <input type="checkbox" name="<?=$name.'-'.$record->$key?>"
                    value='<?=$k?>'
                    id="check-box-<?=$name.'-'.$record->$key.'-'.$k?>"
                    onclick="onUpdateChecklist($(this))"
                    <?= ($record->$name==$k)?'checked':'' ?>
                >
                <label for="check-box-<?=$name.'-'.$record->$key.'-'.$k?>">
                    <span>
                        <?= $v ?>
                    </span>
                </label>
            </div>
            <?php endforeach;?>
        </div>
    </div>
</label>
